<template>
  <div>
    <ImgCutter v-on:cutDown="cutDown">
      <template #open>
        <el-button type="primary">{{ bName }}</el-button>
      </template>
    </ImgCutter>
  </div>
</template>
<script setup lang="ts">
const props = defineProps({
  bName:{
    type:String,
    default:'选择图片'
  }
})
const emit = defineEmits(['imgCunt'])
import ImgCutter from 'vue-img-cutter'
const cutDown = (files:any) => {
  emit('imgCunt',files)
}

</script>
<style scoped lang="scss">
</style>